package com.neo.impatient.C08_extends.C08_05_supperClassConstruct

class Person(name1: String = "neo", name2: String = "xiaohua"){

  private  var name  = ""
  private  var age  = 0
  //辅助构造器
  def this(name: String) {
    this()
    this.name = name
  }
  //辅助构造器
  def this(name: String, age: Int){
    this(name)
    this.age = age
  }

  def namePPP(): String ={
    val nameUser = "zhao"
    println("asd")
    nameUser
  }

  def forOverTest() : String = {
    println("bb")
    "aa"
  }

}
